<template>
    <div class="suammry">
        <span>全部任务( {{ $store.state.taskList.length }} )</span>
        <span>已完成( {{ $store.state.taskList.length - $store.getters.unFinished }} )</span>
        <span>未完成( {{ $store.getters.unFinished }} )</span>
    </div>
</template>

<script>
export default {

}
</script>

<style lang='scss' scoped>
.suammry{
    display: flex;
    align-items: center;
    font-size: 14px;
}
.suammry span{
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
    background-color: lightseagreen;
    margin: 10px 0;
    margin-right: 10px;
    color: white;
}
.suammry span:nth-child(3){
    background-color: red;
}
</style>